import request from '@/utils/request'

// 查询参数列表
export function listProject(query) {
  return request({
    url: '/pm/projects/list',
    method: 'get',
    params: query
  })
}

// 新增
export function addProject(data) {
  return request({
    url: '/pm/projects/add',
    method: 'post',
    data: data
  })
}

// 查询公告详细
export function getProject(id) {
  return request({
    url: '/pm/projects/' + id,
    method: 'get'
  })
}

// 修改
export function updateProject(data) {
  return request({
    url: '/pm/projects/update',
    method: 'put',
    data: data
  })
}
export function getAllProject(query) {
  return request({
    url: '/pm/projects/getAll',
    method: 'get',
    params: query
  })
}
